<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - 登陆';
$this->breadcrumbs=array(
	'Login',
);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=<?php echo Yii::app()->charset;?>" />
		
		<title><?php echo $this->pageTitle;?></title>
		
		<!--                       CSS                       -->
	  
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl;?>/resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
	  
		<!-- jQuery -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/scripts/jquery-1.3.2.min.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/scripts/jquery.wysiwyg.js"></script>
		
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->
		
	</head>
  
	<body id="login">
		
		<div id="login-wrapper" class="png_bg">
			<div id="login-top">
			
				<h1>Simpla Admin</h1>
				<!-- Logo (221px width) -->
				<img id="logo" src="<?php echo Yii::app()->theme->baseUrl;?>/resources/images/logo.png" alt="Simpla Admin logo" />
			</div> <!-- End #logn-top -->
			
			<div id="login-content" >
				
				<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'login-form',
					'enableAjaxValidation'=>True,
					'enableClientValidation'=>true,
					'clientOptions'=>array("validateOnSubmit"=>True,"validateOnChange"=>false),
				)); ?>
					<table>
					<tr>
						<td><?php echo $form->labelEx($model,'username',array("style"=>"width:80px")); ?></td>
						<td><?php echo $form->textField($model,'username',array('class'=>'text-input')); ?></td>
						<td style="padding-left:20px;"><?php echo $form->error($model,'username'); ?></td>
					</tr>
					<tr>
						<td><?php echo $form->labelEx($model,'password',array("style"=>"width:80px")); ?></td>
						<td><?php echo $form->passwordField($model,'password',array('class'=>'text-input')); ?></td>
						<td style="padding-left:20px;"><?php echo $form->error($model,'password'); ?></td>
					</tr>
					<tr>
						<td></td>
						<td><div class="buttons loginbtn"><?php echo CHtml::submitButton('Login',array('class'=>'button')); ?></div></td>
						<td style="padding-left:20px;"></td>
					</tr>				
					</table>

				<?php $this->endWidget(); ?>
			</div> <!-- End #login-content -->
			
		</div> <!-- End #login-wrapper -->
		
  </body>
  </html>
